import request from '@/utils/request'

// 查询房源列表
//修改
export function listFinan(query) {
  return request({
    url: '/banking/finance/list',
    method: 'get',
    params: query
  })
}
// 查询详情
export function getObject(query) {
  return request({
    url: '/banking/finance/rentingAuditView',
    method: 'get',
    params: query
  })
}
// 查询收房贷申请信息详细
export function getLoan(id) {
  return request({
    url: '/house/loan/' + id,
    method: 'get'
  })
}
export function getContract(id) {
  return request({
    url: '/banking/finance/' + id,
    method: 'get'
  })
}
// 修改收房贷申请信息
export function updateLoan(data) {
  return request({
    url: '/banking/finance/updateById',
    method: 'put',
    data: data
  })
}

